﻿namespace OdaOperation.Model
{
    /// <summary>
    /// 表格的对齐方式
    /// </summary>
    public enum TableAlignment : byte
    {
        /// <summary>
        /// 顶部对齐
        /// </summary>
        Top = 1,
        /// <summary>
        /// 垂直居中对齐
        /// </summary>
        vCenter = 2,
        /// <summary>
        /// 底部对齐
        /// </summary>
        Bottom = 3,
        /// <summary>
        /// 左对齐
        /// </summary>
        Left = 0x10,
        /// <summary>
        /// 水平居中对齐
        /// </summary>
        hCenter = 0x20,
        /// <summary>
        /// 右对齐
        /// </summary>
        Right = 48,

        #region 组合对齐方式

        /// <summary>
        /// 顶部左对齐 (Top + Left)
        /// </summary>
        TopLeft = 17,
        /// <summary>
        /// 顶部右对齐 (Top + Right)
        /// </summary>
        TopRight = 49,
        /// <summary>
        /// 顶部居中对齐 (Top + hCenter)
        /// </summary>
        TopCenter = 33,
        /// <summary>
        /// 垂直居中左对齐 (vCenter + Left)
        /// </summary>
        CenterLeft = 18,
        /// <summary>
        /// 垂直居中右对齐 (vCenter + Right)
        /// </summary>
        CenterRight = 50,
        /// <summary>
        /// 垂直水平居中对齐 (vCenter + hCenter)
        /// </summary>
        CenterCenter = 34,
        /// <summary>
        /// 底部左对齐 (Bottom + Left)
        /// </summary>
        BottomLeft = 19,
        /// <summary>
        /// 底部右对齐 (Bottom + Right)
        /// </summary>
        BottomRight = 51,
        /// <summary>
        /// 底部居中对齐 (Bottom + hCenter)
        /// </summary>
        BottomCenter = 35
        #endregion
    }

}